package com.xbongbong.pro.domain.dao;

import com.xbongbong.pro.domain.entity.SaasProRelationEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 迁移时，saas和pro的id对应表
 * 创建时间 2019/7/14 5:07 PM
 * 修改时间 2019/7/14 5:07 PM
 * @author chy
 * @since v1.0
 * @version v1.0
 */
@Repository
@Mapper
public interface SaasProRelationDao {
    Integer insert(SaasProRelationEntity activity);

    void insertBatch(List<SaasProRelationEntity> list);

    Integer update(SaasProRelationEntity activity);

    Integer deleteByKey(@Param("key") Long key);

    SaasProRelationEntity getByKey(@Param("key") Long key);

    List<SaasProRelationEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);
}
